package com.muyu.payment.domain.req;

import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 退款申请DTO
 */
@Data
public class RefundApplyDto {
    @NotBlank(message = "订单号不能为空")
    private String orderNo;
    
    @NotNull(message = "退款金额不能为空")
    @DecimalMin(value = "0.01", message = "退款金额必须大于0")
    private BigDecimal refundAmount;
    
    private String refundReason;
}
